import Mock from 'mockjs'
let evaluate = []
let FilmDetail ={
  imgUri: 'https://img3.doubanio.com/view/photo/l/public/p2531887203.webp',
  filmName: '反贪风暴Ⅲ',
  director: ['林德禄', '林德禄'],
  scriptwriter: ['黄浩华', '何文龙'],
  protagonist: ['古天乐', '张智霖', '郑嘉颖', '邓丽欣', '栢天男'],
  type: ['剧情', '动作', '犯罪'],
  country: ['香港', '大陆'],
  language: ['粤语', '汉语普通话'],
  year: ['2018-09-14(中国大陆)', '2018-08-23(香港)'],
  length: '97',
  oname: ['L Storm', 'L Storms'],
  onlineTime: '2018',
  bgImgUri: 'https://img3.doubanio.com/view/photo/l/public/p2529670541.webp',
  videoUri: 'http://bjhnewmda2.bdstatic.com/683655326649376536675879777a3269/4a6c457248347974/3e7c56241df25c77b8763fba5628a260169e9bbbd3cb7581cf55489219df83faa0ec4336a1af7e35935199515c18c951.mp4?auth_key=1537512296-0-0-9676b8952977d5f236133ef8c25b64fa',
  filmIntro: 'ICAC (廉政公署) 陆志廉（古天乐 饰），JFIU (联合财富情报组) 刘保强（张智霖 饰）分别侦查贪污及洗黑钱案，但苦无线索，这时廉政公署L组 (内部纪律调查组) 程德明（郑嘉颖 饰）收到Eva（邓丽欣 饰）举报，指陆志廉收贿1,200万，陆无法辩解即时停职。 刘发现陆被诬陷，并跟一直调查的洗黑钱案有着千丝万缕关系，同时怀疑银行主任游子新（栢天男 饰）协助犯罪集团首脑王海禾（谭耀文 饰）洗黑钱；中国反贪局侦查处处长洪亮（丁海峰 饰）来港，给刘保强提供了重要情报，原来洗黑钱案牵涉内地贪腐官员，陆港合力打击贪腐；陆亦冒险搜集罪证却遭禁锢，命悬一线',
  protagonistList: [
    {id: 1, imgUri: 'https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1357529568.73.webp', name: '林德禄'},
    {id: 2, imgUri: 'https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1421047436.79.webp', name: '古天乐'},
    {id: 3, imgUri: 'https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1241.webp', name: '张智霖'},
    {id: 4, imgUri: 'https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p40550.webp', name: '郑嘉颖'},
    {id: 5, imgUri: 'https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p2292.webp', name: '邓丽欣'},
    {id: 6, imgUri: 'https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1527573820.78.webp', name: '栢天男'}
  ]
}
for (var i = 0; i < 10; i++) {
  evaluate.push(Mock.mock({
    id: '@increment',
    name: '@cname',
    timesp: '@date("yyyy-MM-dd")',
    content: '@csentence(60, 120)',
    comment: '@integer(600, 8000)',
    rate: '@float( 1, 5, 0, 1 )'
  }))
}
const film = {
  getFilmEvaluate: config => {
    return {
      state: 0,
      result: evaluate
    }
  },
  getFilmDetail: config => {
    return {
      state: 0,
      result: FilmDetail
    }
  }
}
export default film
